package com.service;

import java.util.List;

import com.dao.IdealDao;
import com.entity.Ideal;

public class IdealService {

	IdealDao dao=new IdealDao();
	
	public void add(Ideal ideal) {
		dao.add(ideal);
	}

	public List<com.entity.Ideal> getByPid(String id) {
		return dao.getByPid(id);
	}

	public Ideal getById(String id) {
		return dao.getById(id);
	}

	public void update(Ideal ideal) {
		dao.update(ideal);
	}

	public void delete(String id) {
		dao.delete(id);
	}

}
